﻿using DevExpress.XtraGrid.Demos.util;
using DXApplicationTangche.DTO;
using mendian;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DXApplicationTangche.UC.项目流程.Service
{
    public class 任务Service
    {
        public static List<StaffDTO> getAllStaffs()
        {
            return
                FunctionHelper.JsonDeserialization<List<StaffDTO>>(
                    RestCall.httpGetMethod(
                        URL.接口url + "/assert/getAllStaffs"
                        )
                    );
        }
    }
    public class WBSItemsDTO
    {
        public String id { get; set; }
        public String parentId { get; set; }
        public String activityDescription { get; set; }
        public String code { get; set; }
        public String mnemonic { get; set; }
        public WBSItemsDTO(
            String id,
            String parentId
            )
        {
            this.id = id;
            this.parentId = parentId;
        }


        public WBSItemsDTO()
        {

        }
        public WBSItemsDTO build(
            String activityDescription, 
            String code, 
            String mnemonic
            )
        {
            this.activityDescription = activityDescription;
            this.code = code;
            this.mnemonic = mnemonic;

            return this;
        }
    }
    //员工
    public class StaffDTO
    {
        public String id { get; set; }
        public String code { get; set; }
        public String name { get; set; }
        public String mnemonic { get; set; }
        public String email { get; set; }
        
        public StaffDTO()
        {

        }
    }
}
